﻿using NAGFwk.UI;
namespace SilkeyERP.UI.Entities.BI {
    public partial class ucRegions : BaseModule {
        public ucRegions() {
            InitializeComponent();
            InitializeData();
        }
        void InitializeData() {
            IDataProvider dataProvider = DataSource.GetDataProvider();
            dailySalesByRegion.SetSalesPerformanceProvider(new DailySalesByRegion(dataProvider));
            unitSalesByRegion.SetSalesPerformanceProvider(new UnitSalesByRegion(dataProvider));
            ucSalesByRange.SetSalesByRangeProvider(new RegionSalesByRange(dataProvider));
        }
    }
}
